package com.guoyw.seata.storage.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.guoyw.seata.storage.entity.TStorage;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper 接口
 * author: guoyw
 * create: 2020-09-19 17:37
 **/

public interface TStorageMapper extends BaseMapper<TStorage>{
  /**
   * 扣减商品库存
   * @Param: commodityCode 商品code  count扣减数量
   * @Return:
   */
  int decreaseStorage(@Param("commodityCode") String commodityCode, @Param("count") Integer count);
}
